Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

perf: optimize JdbcDataSource#getConnection() - #2371

Merged
olavloite merged 1 commit into
mainfrom
optimize-jdbc-data-source
Jan 26, 2026
Merged

perf: optimize JdbcDataSource#getConnection()#2371
olavloite merged 1 commit into
mainfrom
optimize-jdbc-data-source

Conversation

@olavloite

Copy link
Copy Markdown
Collaborator

The JdbcDataSource#getConnection() method repeatedly executed a number of steps that were not necessary for each new connection. This has now been optimized, so they are only executed once, as long as the properties of the DataSource do not change.

The `JdbcDataSource#getConnection()` method repeatedly executed a number of steps
that were not necessary for each new connection. This has now been optimized, so
they are only executed once, as long as the properties of the DataSource do not
change.
@olavloite
olavloite requested review from a team January 23, 2026 15:31
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Jan 23, 2026
@olavloite
olavloite merged commit 832064c into main Jan 26, 2026
28 checks passed
@olavloite
olavloite deleted the optimize-jdbc-data-source branch January 26, 2026 15:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/java-spanner-jdbc API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants